#ifndef RLE_H
#define RLE_H

//RLE 二值数据压缩和解压

unsigned int rle8_encode_length(unsigned char *iptr,unsigned int ilen);
unsigned int rle8_encode(unsigned char *iptr,unsigned int ilen,unsigned char *optr,unsigned int olen);
unsigned int rle8_decode_length(unsigned char *iptr,unsigned int ilen);
unsigned int rle8_decode(unsigned char *iptr,unsigned int ilen,unsigned char *optr,unsigned int olen);

unsigned int rle4_encode_length(unsigned char *iptr,unsigned int ilen);
unsigned int rle4_encode(unsigned char *iptr,unsigned int ilen,unsigned char *optr,unsigned int olen);
unsigned int rle4_decode_length(unsigned char *iptr,unsigned int ilen);
unsigned int rle4_decode(unsigned char *iptr,unsigned int ilen,unsigned char *optr,unsigned int olen);

#endif